package com.aaa.common.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageQuery implements Serializable {
    private Integer page;
    private Integer count;

    //分页的第一个字段
    private Integer getIndex(){
        return (page-1)*count;
    }
}
